package processcontrol;

/**
 * @author shkstart
 * @date 2022/4/6 - 23:26
 */
public class IfTest03 {
    public static void main(String[] args) {
            int dogAge = 6;
            if( dogAge > 0 && dogAge <= 2 ) {
                System.out.println("相当于人的年龄" + dogAge * 10.5);
            }else if( dogAge > 2) {
                System.out.println("相当于人的年龄" + (2 * 10.5 + (dogAge - 2) * 4 ));
            }else {
                System.out.println("狗狗还没出生呢！");
            }
    }
}
